import type { RouteRecordRaw } from 'vue-router';

import Layout from '@/layouts/index.vue';

export const homeRoutes: RouteRecordRaw[] = [
  {
    path: '/home',
    name: 'HomeRoot',
    component: Layout,
    redirect: '/home/index',
    meta: {
      authCodes: ['FM_HOME'],
      icon: 'HomeFilled',
      hideBreadcrumb: true,
    },
    children: [
      {
        path: '/home/index',
        name: 'HomeIndex',
        component: () => import('@/views/home/index.vue'),
        meta: {
          authCodes: ['FM_HOME'],
          title: '首页',
          hideBreadcrumb: true,
          keepAlive: true,
        },
      }
    ],
  }
];
